package com.dc.project.basics.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.dc.common.validated.DeleteGroup;
import com.dc.common.validated.InsertGroup;
import com.dc.common.validated.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 客户表(BasClientele)实体类
 *
 * @author zhuangcy
 * @since 2021-06-12 16:56:47
 */
@TableName("bas_clientele")
@Data
@ApiModel(value = "客户表")
public class BasClientele implements Serializable {
    private static final long serialVersionUID = 720564915755769208L;
    /**
     * 客户id
     */
    @NotNull(message = "客户id不能为空", groups = {UpdateGroup.class, DeleteGroup.class})
    @TableId(value = "clientele_id", type = IdType.AUTO)
    @ApiModelProperty(name = "clienteleId", value = "客户id")
    private Integer clienteleId;
    /**
     * 客户编码
     */
    @NotNull(message = "客户编码不能为空", groups = {UpdateGroup.class, InsertGroup.class})
    @TableField(value = "clientele_code")
    @ApiModelProperty(name = "clienteleCode", value = "客户编码")
    private String clienteleCode;
    /**
     * 客户名称
     */
    @NotNull(message = "客户名称不能为空", groups = {UpdateGroup.class, InsertGroup.class})
    @TableField(value = "clientele_name")
    @ApiModelProperty(name = "clienteleName", value = "客户名称")
    private String clienteleName;
    /**
     * 联系人
     */
    @TableField(value = "contacts")
    @ApiModelProperty(name = "contacts", value = "联系人")
    private String contacts;
    /**
     * 手机号码
     */
    @TableField(value = "phone")
    @ApiModelProperty(name = "phone", value = "手机号码")
    private String phone;
    /**
     * 联系电话
     */
    @TableField(value = "telephone")
    @ApiModelProperty(name = "telephone", value = "联系电话")
    private String telephone;
    /**
     * 邮箱
     */
    @TableField(value = "email")
    @ApiModelProperty(name = "email", value = "邮箱")
    private String email;
    /**
     * 传真
     */
    @TableField(value = "facsimile")
    @ApiModelProperty(name = "facsimile", value = "传真")
    private String facsimile;
    /**
     * 地址
     */
    @TableField(value = "address")
    @ApiModelProperty(name = "address", value = "地址")
    private String address;
    /**
     * 状态（0正常 1停用）
     */
    @TableField(value = "status")
    @ApiModelProperty(name = "status", value = "状态（0正常 1停用）")
    private String status;
    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableField(value = "del_flag")
    @ApiModelProperty(name = "delFlag", value = "删除标志（0代表存在 1代表删除）")
    private String delFlag;
    /**
     * 创建者id
     */
    @TableField(value = "created_id", fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdId", value = "创建者id")
    private Integer createdId;
    /**
     * 创建者
     */
    @TableField(value = "created_by", fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdBy", value = "创建者")
    private String createdBy;
    /**
     * 创建时间
     */
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdTime", value = "创建时间")
    private Date createdTime;
    /**
     * 更新者id
     */
    @TableField(value = "updated_id", fill = FieldFill.UPDATE)
    @ApiModelProperty(name = "updatedId", value = "更新者id")
    private Integer updatedId;
    /**
     * 更新者
     */
    @TableField(value = "updated_by", fill = FieldFill.UPDATE)
    @ApiModelProperty(name = "updatedBy", value = "更新者")
    private String updatedBy;
    /**
     * 更新时间
     */
    @TableField(value = "updated_time", fill = FieldFill.UPDATE)
    @ApiModelProperty(name = "updatedTime", value = "更新时间")
    private Date updatedTime;


}